FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /source

# copy proj and restore as distinct layers
COPY . .
RUN dotnet restore F3F3.csproj
RUN dotnet publish -c release -o /app --no-restore

# create app image
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
WORKDIR /app
COPY --from=build /app .
#ENTRYPOINT ["dotnet", "F3F3.dll"]